import {reqUser,AddreqUser} from '@/api/index'

const state={
    list:[]
    
}
const mutations={
  LIST(state,value){
    state.list = value
  }
}
const actions={
  // 获取医生列表数据
 async reqUser({commit}){
   let result =  await reqUser()
   if(result.code ==200){
      commit('LIST',result.data);
   }
  },
  // 添加窗口
 async AddreqUser(data){
    let result =  await AddreqUser(data)
    console.log(result);
  }
}


export default {
    state,
    mutations,
    actions
}